package net.maku.module.dao;

import net.maku.module.entity.AgHomeConfiguration;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface AgHomeConfigurationMapper {

    AgHomeConfiguration selectByIdAndWebsite(@Param("id") Integer id, @Param("websiteId") Integer websiteId);

    List<AgHomeConfiguration> selectByWebsiteId(@Param("websiteId") Integer websiteId);

    int insertConfig(AgHomeConfiguration config);

    int updateConfig(AgHomeConfiguration config);

    int deleteConfig(@Param("id") Integer id, @Param("websiteId") Integer websiteId);
}